package it.aekidna.cleverplatypus.workflow.template
{
	import it.aekidna.cleverplatypus.mediator.CommandEvent;
	import it.aekidna.cleverplatypus.workflow.AbstractWorkflowTask;

	public class DispatchCommandEventTask extends AbstractWorkflowTask
	{
		public var eventName : String;
		public var parameters : Object;
		
		override public function begin() : void
		{
			CommandEvent.createWithNamedParams( eventName, parameters ).dispatch();
			complete();
		}
		
	}
}